using Assets.Scripts.GDK;
using UnityEngine.EventSystems;
using UnityEngine.UI;

namespace Brick
{
	public class SelectGuideItem : gdk_base_UI, IPointerEnterHandler, IPointerDownHandler, IPointerUpHandler, IEventSystemHandler
	{
		public string strKey;

		public override void OnLoad()
		{
			strKey = gdk_utils.FindChild(base.gameObject.transform, "textStr").GetComponent<Text>().text;
		}

		void IPointerDownHandler.OnPointerDown(PointerEventData eventData)
		{
			GDK.ModuleManger.Module<SelectGuideModule>().touchStart(base.gameObject);
		}

		void IPointerEnterHandler.OnPointerEnter(PointerEventData eventData)
		{
			GDK.ModuleManger.Module<SelectGuideModule>().touchMove(base.gameObject);
		}

		void IPointerUpHandler.OnPointerUp(PointerEventData eventData)
		{
			GDK.ModuleManger.Module<SelectGuideModule>().touchCancel(base.gameObject);
		}
	}
}

